[
  {
    "months": 1,
    "pattern": "CREATE TABLE channels.messages_y{start_year}m{start_month}\nPARTITION OF channels.messages\n    FOR VALUES\n        FROM ('01-{start_month}-{start_year}'::TIMESTAMP)\n        TO ('01-{end_month}-{end_year}'::TIMESTAMP)"
  },
  {
    "months": 1,
    "pattern": "CREATE TABLE channels.messages_data_y{start_year}m{start_month}\nPARTITION OF channels.messages_data\n    FOR VALUES\n        FROM ('01-{start_month}-{start_year}'::TIMESTAMP)\n        TO ('01-{end_month}-{end_year}'::TIMESTAMP)"
  },
  {
    "months": 4,
    "pattern": "CREATE TABLE channels.messages_attachments_media_y{start_year}m{start_month}\nPARTITION OF channels.messages_attachments_media\n    FOR VALUES\n        FROM ('01-{start_month}-{start_year}'::TIMESTAMP)\n        TO ('01-{end_month}-{end_year}'::TIMESTAMP)"
  },
  {
    "months": 4,
    "pattern": "CREATE TABLE channels.messages_attachments_files_y{start_year}m{start_month}\nPARTITION OF channels.messages_attachments_files\n    FOR VALUES\n        FROM ('01-{start_month}-{start_year}'::TIMESTAMP)\n        TO ('01-{end_month}-{end_year}'::TIMESTAMP)"
  }
]